package com.ymatou.iapi.itempriceq.service;

import org.json.JSONObject;

import com.ymatou.iapi.productprice.service.PriceInterface;
import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class GetPriceByProdIdTradeIsolationCall extends YmatouAutoTestCall implements PriceInterface{

	private static String opurl ="api/Price/GetPriceByProdIdTradeIsolation";
	
	public GetPriceByProdIdTradeIsolationCall() {
		super(EnvSetup.getSystemUrl("itempriceq"),opurl,"GET","JSON");
	}
	@Override
	public void addDefHeader() {
	}
	
	
	public JSONObject callAndGetReturnData(int buyerId,String productId){
		return callAndGetReturnData(MapUtil.hashMap("BuyerId", buyerId, "ProductId",productId));
	}
	
	
	public static void main(String[] args) {
		new GetPriceByProdIdTradeIsolationCall().callAndGetReturnData(MapUtil.hashMap("BuyerId", "20345997", "ProductId", "c1ba2ba5-ee5b-4139-8731-99127715ffb0"));
	}
	
	@Override
	public JSONObject GetReturnDataByBuyerAndId(int buyerId, String id) {
		return callAndGetReturnData(buyerId,id);
	}

}
